import java.util.Scanner;

/**
 * @author 黄雄
 * @Description
 * @date 2019/11/7
 */
public class Tast {
    public static void main(String[] args) {
        //产生随机数
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入4位整数");
        int ran=(int)(Math.random()*10);
        System.out.println(ran);

        int num=sc.nextInt();
        int a=num/1000;
        System.out.println(a);
        if (ran==a){
            System.out.println("中奖啦");
        }else{
            System.out.println("谢谢参与");
        }
    }
}
